﻿/*
	zealotwms 仓库管理系统
	Copyright (C) 2011  狂热者工作组 
    内容：常用枚举类型
    时间: 2011-9-6
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Zwms.Data.CommonObject
{  
    public class CommonDefine
    {
        //分页每页显示记录数
        public static int iPageSize = 20;

        public static string sSysAdmingRoleCode = "01";
        //入库单类型
        public static Dictionary<string, string> DictIBType = new Dictionary<string, string>()
        {
            {"0","采购入库"},
            {"1","移库入库"},
            {"2","退货入库"},
            {"3","生产入库"},
            {"4","无计划入库"}
        };

        //出库单类型
        public static Dictionary<string, string> DictOBType = new Dictionary<string, string>()
        {
            {"0","销售出库"},
            {"1","移库出库"},
        };

        //入库计划单状态
        public static Dictionary<string, string> DictIPBillStatus = new Dictionary<string, string>()
        {
            {"0","等待标签打印"},
            {"1","正在入库"},
            {"2","收货完成"},
            {"3","已入库"},
            {"4","已撤销"}
        };
        //入库单状态
        public static Dictionary<string, string> DictInBillStatus = new Dictionary<string, string>()
        {
            {"0","正在收货"},
            {"1","正在上架"},
            {"2","已入库"},
            {"3","已撤销"}
        };
        //出库计划单状态
        public static Dictionary<string, string> DictOPBillStatus = new Dictionary<string, string>()
        {
            {"0","等待发货"},
            {"1","正在发货"},
            {"2","部分发货"},
            {"3","已发货"},
            {"4","已撤销"}
        };
        //出库单状态
        public static Dictionary<string, string> DictOutBillStatus = new Dictionary<string, string>()
        {
            {"0","正在拣货"},
            {"1","正在验货"},
            {"2","已发货"},
            {"3","已撤销"}
        };

        public static Dictionary<string, string> DictLogKind = new Dictionary<string, string>()
        {
            {"01","入库计划号"},
            {"02","入库单号"},
            {"03","出库计划号"},
            {"04","出库单号"},
            {"05","拣货单号"}
        };
        //盘点单状态
        public static Dictionary<string, string> DictCountBillStatus = new Dictionary<string, string>()
        {
            {"0","制单"},
            {"1","盘点中"},
            {"2","已盘点"},
            {"3","已撤销"}
        };
        //库存锁定状态
        public static Dictionary<string, string> DictGoodsStockLock = new Dictionary<string, string>()
        {
            {"0","未锁定"},
            {"1","锁定"}
        };

        public static Dictionary<string, string> DictGoodsStatus = new Dictionary<string, string>()
        {
            {"0","完好"},
            {"1","破损"}
        };

        public static Dictionary<string, string> DictLogSgn = new Dictionary<string, string>()
        {
            {"0","登录"},
            {"1","退出"}
        };

        //移库类型
        public static Dictionary<string, string> DictTsfType = new Dictionary<string, string>()
        {
            {"0","上架"},
            {"1","移货"},
            {"2","补货"}
        };

        //移库单状态
        public static Dictionary<string, string> DictTsfBillStatus = new Dictionary<string, string>()
        {
            {"0","制单"},
            {"1","已审核"},
            {"2","已移库"}
        };
        //用户状态
        public static Dictionary<string,string> DictAccountLock = new Dictionary<string,string>()
        {
            {"0","停用"},
            {"1","启用"}
        };
      
    }

    public class MyListItem
    {
        private string id = string.Empty;
        private string name = string.Empty;
        public MyListItem(string sid, string sname)
        {
            id = sid;
            name = sname;
        }
        public override string ToString()
        {
            return this.name;
        }
        public string ID
        {
            get
            {
                return this.id;
            }
            set
            {
                this.id = value;
            }
        }
        public string Name
        {
            get
            {
                return this.name;
            }
            set
            {
                this.name = value;
            }
        }
    }

}